#!/usr/bin/python
# -*- coding: UTF-8 -*-
from selenium import webdriver

from com.test.combination.page.pet import CloudAdminLoginTest as cloudAdminLoginTest


# 云后台登录调度的入口类
class Main:
    driver = webdriver.Chrome()
    cloudAdminLoginTestInstance = cloudAdminLoginTest.CloudAdminLoginTest(driver);
    resArrays = cloudAdminLoginTestInstance.errorLogin()
    for i in range(len(resArrays)):
        print(resArrays[i]["key"] + ":"+ resArrays[i]["res"].__str__())
        # 此缩进在循环外
    print("云后台正确登录:" + cloudAdminLoginTestInstance.login().__str__())
    driver.quit()
